<template>
  <div class="">
    <div class="w-100 ib">Daughter</div>
    <el-select @change="getDaughter" v-model="value" placeholder="daughter data">
      <el-option
        v-for="item in daughterOptions"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </div>
</template>
 
<script>
export default {
  name: '',
  data () {
    return {
      daughterOptions: [
        {value: '选项1', label: 'label1'},
        {value: '选项2', label: 'label2'},
        {value: '选项3', label: 'label3'}
      ],
      value: 'label3'
    }
  },
  methods: {
    getDaughter(v) {
      // console.log(v)
    }
  },
  mounted() {
    this.$bus.$on('getParent', v => {
      // console.log('dau', v)
      this.value = v
    })
  }

}
</script>
 
<style scoped lang="scss">
 
</style>